import { changeHeaderConfigAction } from "@/store/modules/main"
import { useEffect } from "react"
import { useDispatch } from "react-redux"

export default function useFixedHeader(isFixed){
    const dispatch = useDispatch()
    useEffect(() => {
        dispatch(changeHeaderConfigAction({isFixed: isFixed}))
    }, [dispatch, isFixed])
}